// Copyright (C) 2023 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

@import "theme";

.pf-details-shell {
  font-family: $pf-font;
  display: flex;
  flex-direction: column;

  .pf-header-bar {
    z-index: 1;

    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    background-color: white;
    color: black;
    padding: 8px 8px 5px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);

    .pf-header-title {
      font-size: 18px;
      min-width: min-content;
      white-space: nowrap;
    }

    .pf-header-description {
      font-size: 14px;
      flex-grow: 1;
      flex-shrink: 1;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .pf-header-buttons {
      display: flex;
      min-width: min-content;
      gap: 4px;
      align-items: baseline;
    }
  }

  .pf-content {
    font-size: smaller;
    flex-grow: 1;
    font-weight: 300;
    overflow-x: auto;
  }

  &.pf-fill-parent {
    height: 100%;
    .pf-content {
      overflow-y: auto;
    }
  }
}
